package com.party.core.dao.write.member;

import com.party.core.dao.write.BaseWriteDao;
import com.party.core.model.member.MemberMerchantDetail;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 商户统计详情数据写入
 * Created by wei.li.
 *
 * @date 2017/12/11 0011
 * @time 19:28
 */
@Repository
public interface MemberMerchantDetailWriteDao extends BaseWriteDao<MemberMerchantDetail> {

    /**
     * 清除多少天前的历史数据
     * @param num 多少天前
     * @return 删除结果(true/false)
     */
    boolean deleteHistory(Integer num);

    /**
     * 批量更新所有活动、众筹详情的浏览数量
     * @return  更新结果(true/false)
     * create by huangwuming
     *  @date 2018/3/5
     */
    boolean batchUpdate( MemberMerchantDetail memberMerchantDetail);
}
